<div class="form">
    <?php $form = $this->beginWidget('CActiveForm', array(
        'id'                     => 'comment-form',
        'enableClientValidation' => true,
        'enableAjaxValidation'   => true,
        'clientOptions'          => array(
            'validateOnSubmit' => true,
        ),
    )); ?>

	<p class="note"><?php echo Helper::t('Fields_required'); ?></p>

    <div class="row-fluid">
        <div class="span4">
            <label class="name">
                <?php echo $form->textField($model, 'full_name',array('placeholder' => Helper::t('fullname'))); ?>
                <?php echo $form->error($model, 'full_name'); ?>
            </label>
        </div>
        <div class="span4">
            <label class="email">
                <?php echo $form->textField($model, 'email',array('placeholder' => Helper::t('Email_key'))); ?>
                <?php echo $form->error($model, 'email'); ?>
            </label>
        </div>
        <div class="span4">
            <?php echo $form->textField($model, 'website',array('placeholder' => Helper::t('website'))); ?>
            <?php echo $form->error($model, 'website'); ?>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span12">
            <label class="message">
                <?php echo $form->textArea($model, 'info',array('placeholder' => Helper::t('body'))); ?>
                <?php echo $form->error($model, 'info'); ?>
            </label>
        </div>
    </div>

    <?php if (!$model->isNewRecord): ?>
        <div class="row">
            <?php echo $form->labelEx($model, 'status'); ?>
            <?php echo $form->dropDownList($model, 'status', Lookup::items('Status')); ?>
            <?php echo $form->error($model, 'status'); ?>
        </div>
        <div class="row">
            <?php echo $form->labelEx($model, 'is_spam'); ?>
            <?php echo $form->dropDownList($model, 'is_spam', Lookup::items('Is_Spam')); ?>
            <?php echo $form->error($model, 'is_spam'); ?>
        </div>
        <div class="row">
            <?php echo $form->labelEx($model, 'is_read'); ?>
            <?php echo $form->dropDownList($model, 'is_read', Lookup::items('Is_Read')); ?>
            <?php echo $form->error($model, 'is_read'); ?>
        </div>
        <div class="row">
       		<?php echo $form->labelEx($model, 'post_title'); ?>
            <?php echo $model->post_title; ?>
       	</div>
    <?php endif; ?>

	<!--<div class="row">
		<?php /*echo $form->labelEx($model, 'create_date'); */?>
        <?php /*echo $form->textField($model, 'create_date'); */?>
        <?php /*echo $form->error($model, 'create_date'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'user_id'); */?>
        <?php /*echo $form->textField($model, 'user_id', array('size' => 11, 'maxlength' => 11)); */?>
        <?php /*echo $form->error($model, 'user_id'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'post_id'); */?>
        <?php /*echo $form->textField($model, 'post_id', array('size' => 11, 'maxlength' => 11)); */?>
        <?php /*echo $form->error($model, 'post_id'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'post_title'); */?>
        <?php /*echo $form->textField($model, 'post_title', array('size' => 60, 'maxlength' => 255)); */?>
        <?php /*echo $form->error($model, 'post_title'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'post_alias'); */?>
        <?php /*echo $form->textField($model, 'post_alias', array('size' => 60, 'maxlength' => 255)); */?>
        <?php /*echo $form->error($model, 'post_alias'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'owner_post'); */?>
        <?php /*echo $form->textField($model, 'owner_post'); */?>
        <?php /*echo $form->error($model, 'owner_post'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'update_date'); */?>
        <?php /*echo $form->textField($model, 'update_date'); */?>
        <?php /*echo $form->error($model, 'update_date'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'parent_id'); */?>
        <?php /*echo $form->textField($model, 'parent_id'); */?>
        <?php /*echo $form->error($model, 'parent_id'); */?>
	</div>

	<div class="row">
		<?php /*echo $form->labelEx($model, 'logo'); */?>
        <?php /*echo $form->textField($model, 'logo', array('size' => 60, 'maxlength' => 255)); */?>
        <?php echo $form->error($model, 'logo'); ?>
	</div>-->

	<div class="row-fluid buttons" style="margin-bottom: 0">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

    <?php $this->endWidget(); ?>
</div><!-- form -->